﻿using UnityEngine;
using System.Collections;
namespace GameUnit
{
    public class Effect
    {
        public Unit SrcUnit;
        public Unit DstUnit;
        public string Name;
        public string Type;

        public virtual void Init(Hashtable config,Unit unit)
        {
            this.Name = (string)config[":name"];
            this.Type = (string)config[":config"];
            this.SrcUnit = unit;
        }

        public virtual void Exec()
        {

        }
    }
}